<include file="Public/head" title="待发货订单"/>
<include file="Public/back_head" backurl="{:U('User/index')}"/>
<div class="main">
    <div class="order_mange">
        <include file="Order/nav" act_nav="order_send"/>
        <div class="order_content">
          <if condition="$list eq null">
            <div class="content_empty ">
                <img src="__PUBLIC__/home/image/icon3.png" alt="">
                <div class="title">亲，您暂时还没有订单哦~~</div>
                <div class="con">赶快去<a href="{:U('Index/index')}">商城逛逛</a>吧~~</div>
            </div>
            </if>
            <foreach name="list" item="val">
            <div class="content_show">
                <div class="module_order">
                    <div class="title" onclick="location.href='{:U('Order/order_detail',array('id'=>$val['id']))}'">
                        订单号：<i>{$val.order_sn}</i>
                        <span>待发货</span>
                    </div>
                    <div class="content" onclick="location.href='{:U('Order/order_detail',array('id'=>$val['id']))}'">
                        <div class="warp clear">
                            <div class="left" style="background-image: url({:$val['goods_pic']})"></div>
                            <div class="right">
                                <div class="r_h1">{$val.goods_name}</div>
                                <div class="h3"></div>
                                <div class="money"><i class="iconfont icon-jiage-copy"></i><span>{$val.goods_price}</span><em>x1</em></div>
                                <div class="color">{$val.goods_spec}</div>
                            </div>
                        </div>
                    </div>
                    <div class="bottom">共{$val.order_num}件商品&nbsp;合计&nbsp;<i class="iconfont icon-jiage-copy"></i><span>{$val.order_price}</span>
					<if condition="$val.refund_status eq '5'">
                        <div class="btn_false" style="width:4rem;color:#fa4054;border:none;">退款申请中</div>
					<else/>
						<div class="btn_false" style="width:4rem;"><a href="javascript:void(0)" onclick="reply_refundment('{$val.id}')">申请退款</a></div>
					</if>	
                    </div>
                </div>
            </div>
            </foreach>
        </div>
    </div>
</div>
<script>
function reply_refundment(order_id){
	confirm_dialog('亲，您的宝贝儿即将发货，<br/>是否继续退款',function(){
		$.post("{:U('reply_refundment')}",{order_id:order_id},function(data){
			layer.msg(data.info);
			if(data.url != '') setTimeout('location.href="'+data.url+'"',1000);
		});
	});
}
</script>
<include file="Public/foot"/>